andrad - Thu Nov 13 09:12:34 EST 2014 |
Re: Call Functions Of course you can include files by doing: #include <file.dxl> For this you need to know about the include search path of DOORS (in the manual and in the forum you will find some information on that). Then the difference between C and DXL is, that C compiles in two steps: 'compile' and 'link'. At compile time, the c compiler does only care about the current file, therefore you pass him .h files containing only function declararations (but no code) to tell him which other functions are available in the files you are going to link with. In DXL the parsing is simply top down, meaning before you use a function it must be declared with full code. There is however a thing in DXL that is called 'forward declaration' (see manual / forum). But you should'nt use this, except you have to, because this feature can lead to crashes under certain circumstances ... When you worry about how to structure a library, there have also been several posts on the forum. One discussion recently: Hope that helps, regards, Mathias |
Re: Call Functions Mathias Mamsch - Thu Nov 13 11:27:32 EST 2014 Of course you can include files by doing: #include <file.dxl> For this you need to know about the include search path of DOORS (in the manual and in the forum you will find some information on that). Then the difference between C and DXL is, that C compiles in two steps: 'compile' and 'link'. At compile time, the c compiler does only care about the current file, therefore you pass him .h files containing only function declararations (but no code) to tell him which other functions are available in the files you are going to link with. In DXL the parsing is simply top down, meaning before you use a function it must be declared with full code. There is however a thing in DXL that is called 'forward declaration' (see manual / forum). But you should'nt use this, except you have to, because this feature can lead to crashes under certain circumstances ... When you worry about how to structure a library, there have also been several posts on the forum. One discussion recently: Hope that helps, regards, Mathias Thank you Mathias, I have got to use a function. I included a .dxl file... and it's not a library. I didn't know that a .inc was a library file. Thank to your answer I'm not blocked now. Adrien |